package com.edu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author GongChengShi
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EduComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论表
     */
    @TableId(value = "COMMENT_ID", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 用户id
     */
    @TableField("USER_ID")
    private Integer userId;

    /**
     * 父级评论id(为0则是一级评论,不为0则是回复)
     */
    @TableField("P_COMMENT_ID")
    private Integer pCommentId;

    /**
     * 评论内容
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 创建时间
     */
    @TableField("ADDTIME")
    private LocalDateTime addtime;

    /**
     * 评论的相关id
     */
    @TableField("OTHER_ID")
    private Integer otherId;

    /**
     * 点赞数量
     */
    @TableField("PRAISE_COUNT")
    private Integer praiseCount;

    /**
     * 回复数量
     */
    @TableField("REPLY_COUNT")
    private Integer replyCount;

    /**
     * 1文章 2课程
     */
    @TableField("TYPE")
    private Integer type;


}
